<%--
  Created by IntelliJ IDEA.
  User: lt
  Date: 2017/5/3
  Time: 16:55
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE HTML>
<html>
<head>


    <title>添加广告</title>
    <%@ include file="/common/include-core.jsp" %>
    <%@ include file="/common/jspTemplate.jsp" %>
</head>
<body>
<article class="page-container">
    <form action="" class="form form-horizontal" id="form-member-add" enctype="multipart/form-data">
        <input id="tid" name="tid" value="${advert.tid}" type="hidden">
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">广告标题：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text" placeholder="广告标题" value="${advert.title}" id="title" name="title">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3" id="detailed">详细内容</label>
            <div class="formControls col-xs-8 col-sm-9">

                    <input type="text" class="input-text" value="${advert.introducer}" placeholder="详细内容" id="introducer" name="introducer">

            </div>
        </div>
        <div id="class"></div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>链接地址：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text" value="${advert.url}" placeholder="链接地址" id="url" name="url">
            </div>
        </div>


        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>图片：</label>
            <div class="formControls col-xs-8 col-sm-9">

                <input class="input-text upload-url" value="${advert.picUrl}" type="text" name="resourceUrl" id="photo" readonly nullmsg="请添加附件！" style="width:200px">
                <a href="javascript:void(0);" class="btn btn-primary radius upload-btn"><i class="Hui-iconfont">&#xe642;</i> 浏览文件</a>
                <input type="file" multiple name="location" class="input-file" style="left: 0;font-size: 1.5em">



            </div>
        </div>

        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">排序值：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text" value="${advert.sort}" placeholder="排序权重，值越小月靠前（最小为0）" id="sort" name="sort">
            </div>
        </div>

        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>显示区域：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <span class="select-box">
                    <select class="select" name="locationId" id="select">
                       <option value="1" ${advert.locationId=="1"?"selected":"" }>首页banner</option>
                       <option value="2" ${advert.locationId=="2"?"selected":"" }>首页banner右侧</option>
                       <option value="3" ${advert.locationId=="3"?"selected":"" }>首页红领巾动态</option>
                       <option value="4" ${advert.locationId=="4"?"selected":"" }>首页红领巾知识</option>
                       <option value="5" ${advert.locationId=="5"?"selected":"" }>首页五彩校园</option>
                       <option value="6" ${advert.locationId=="6"?"selected":"" }>首页智慧队课</option>
                    </select>
				</span>
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>图片尺寸：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <span class="select-box" id="picRemark"  style="color: red;">
				</span>
            </div>
        </div>

        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>状态：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <span class="select-box">
                    <select class="select" name="status">
                        <option value="1" ${advert.status==1?"selected":"" }>有效</option>
                        <option value="0" ${advert.status==0?"selected":"" }>无效</option>
                    </select>
				</span>
            </div>
        </div>
        <div class="row cl">
            <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
                <input class="btn btn-primary radius" type="button" id="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
            </div>
        </div>
    </form>
</article>

<script type="text/javascript" src="/static/js/admin/advert/advert.js"></script>
<!--/请在上方写此页面业务相关的脚本-->
</body>
</html>